package org.vector.view;

import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;


@SuppressWarnings("serial")
public class Wcuowu extends JFrame{
	private JLabel l;
	private JButton b;
	
	
	public Wcuowu() {
		setSize(300, 200);
		setLocationRelativeTo(null);
		
		setLayout(new FlowLayout());
		l = new JLabel("用户名或密码或卡号错误！");
		add(l);
		b = new JButton("确认");
		add(b);
		
		b.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				Wcuowu.this.dispose();
			}
		});
		
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setVisible(true);
	}
	public Wcuowu(String a) {
		setSize(300, 200);
		setLocationRelativeTo(null);
		
		setLayout(new FlowLayout());
		l = new JLabel("你的账号"+ a);
		add(l);
		b = new JButton("确认");
		add(b);
		
		b.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				Wcuowu.this.dispose();
			}
		});
		
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setVisible(true);
	}
	
}
